package org.oschina.api.manage.menu.controller;

import java.util.List;

import org.oschina.api.BaseController;
import org.oschina.api.manage.menu.service.ManageMenuService;
import org.oschina.api.manage.menu.vo.ManageMenuVo;
import org.oschina.config.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value=Config.API_PATH+"/manage/menu")
public class ManageMenuController extends BaseController {

	@Autowired
	private ManageMenuService manageMenuService;
	
	/**
	 * 返回
	 * @return
	 */
	@RequestMapping(value="/",method=RequestMethod.GET)
	public List<ManageMenuVo> findVoByRole()
	{
		return manageMenuService.findVoByRole();
	}
}